home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programmer's Power Pack
/
Delphi Volume 1.iso
/
s_to_z
/
wmapdemo
/
data.z
/
LDIALOG.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-03-09
|
989b
|
50 lines
unit Ldialog;
interface
uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
StdCtrls, ExtCtrls;
type
TLineDlg = class(TForm)
OKBtn: TBitBtn;
CancelBtn: TBitBtn;
HelpBtn: TBitBtn;
Bevel1: TBevel;
Lat: TEdit;
Label1: TLabel;
Label2: TLabel;
Long: TEdit;
Label5: TLabel;
Label6: TLabel;
Label3: TLabel;
LatTo: TEdit;
Label4: TLabel;
LongTo: TEdit;
procedure OKBtnClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
LineDlg: TLineDlg;
implementation
{$R *.DFM}
uses mapmain;
procedure TLineDlg.OKBtnClick(Sender: TObject);
begin
Mapform.WorldMap1.AddLine(lat.text,long.text,latto.text,longto.text,clBlue,2,0);
end;
procedure TLineDlg.FormClose(Sender: TObject; var Action: TCloseAction);
begin
action := caFree;
end;
end.